FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2c2d50d.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2c2d50d.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2c2d50d OS_GIT_VERSION=4.10.0-202202160023.p0.g2c2d50d.assembly.stream-2c2d50d SOURCE_DATE_EPOCH=1641491183 SOURCE_GIT_COMMIT=2c2d50dbda3a06681a3b9c683c53ff3b3ba3b685 SOURCE_GIT_TAG=v0.0.0-alpha.0-250-g2c2d50db SOURCE_GIT_URL=https://github.com/openshift/openshift-controller-manager 
WORKDIR /go/src/github.com/openshift/openshift-controller-manager
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2c2d50d.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2c2d50d.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2c2d50d OS_GIT_VERSION=4.10.0-202202160023.p0.g2c2d50d.assembly.stream-2c2d50d SOURCE_DATE_EPOCH=1641491183 SOURCE_GIT_COMMIT=2c2d50dbda3a06681a3b9c683c53ff3b3ba3b685 SOURCE_GIT_TAG=v0.0.0-alpha.0-250-g2c2d50db SOURCE_GIT_URL=https://github.com/openshift/openshift-controller-manager 
COPY --from=builder /go/src/github.com/openshift/openshift-controller-manager/openshift-controller-manager /usr/bin/

LABEL \
        io.k8s.display-name="OpenShift Controller Manager Command" \
        io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
        io.openshift.tags="openshift,openshift-controller-manager" \
        name="openshift/ose-openshift-controller-manager" \
        com.redhat.component="ose-openshift-controller-manager-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="openshift-controller-manager" \
        release="202202160023.p0.g2c2d50d.assembly.stream" \
        io.openshift.build.commit.id="2c2d50dbda3a06681a3b9c683c53ff3b3ba3b685" \
        io.openshift.build.source-location="https://github.com/openshift/openshift-controller-manager" \
        io.openshift.build.commit.url="https://github.com/openshift/openshift-controller-manager/commit/2c2d50dbda3a06681a3b9c683c53ff3b3ba3b685" \
        version="v4.10.0"

